package cn.xiuxius.embedded.command.converter;

import cn.xiuxius.embedded.model.IntegerFlashOptionType;

public class EEPROMConvert extends IntegerTypeConverter {

    @Override
    public IntegerFlashOptionType convert(String value) {
        IntegerFlashOptionType convert = super.convert(value);
        if (convert.getValue() == 512) {
            convert.setValue(65024 - convert.getValue());
        }
        return convert;
    }
}
